package convertor

import (
	"mine-info-server/domain/common-context/model/blessing-word-aggregate/aggregate"
	"mine-info-server/interfaces/response"
)

/*
   @author:zhongyang
   @date:2023/4/12
   @description:转换器-用于DO和DTO之间的相互转换
*/

type CommonConvertor struct {
}

func (c *CommonConvertor) ConvertBlessingWordResponse(req *aggregate.BlessingWordAggregate) *response.BlessingWordResponse {
	return &response.BlessingWordResponse{
		ID:      req.ID,
		Content: req.Content,
	}
}
